<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>富文本编辑器</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.0/jquery.js"></script>
    <script src="./EventUtil.js"></script>
    <style>
        html,
        body {
            width: 100%;
            height: 100%;
        }
        
        iframe {
            width: 50%;
            height: 50%;
            margin: 0 200px;
            border: 1px solid #ccc;
        }
    </style>
</head>

<body>
    <iframe src="./blank.html" frameborder="0"></iframe>

    <script>
        window.onload = function() {
            frames[0].document.designMode = 'on';
        }
    </script>
</body>

</html>